class ApplicationRecord < ActiveRecord::Base
  extend Enumerize
  self.abstract_class = true

  def self.t(attr_name)
    human_attribute_name attr_name
  end

  def t(attr_name)
    self.class.t attr_name
  end

  def to_s
    return name if respond_to?(:name)
    super
  end
end
